<?php

use Welcomescreen\Agavi\Action;

class Backend_Visits_PreviewAction extends Action\BackendBaseAction {
	public function execute(AgaviWebRequestDataHolder $rd) {
		$ctx = $this->getContext();
		$template = $ctx->getModel('TemplateManager')->getTemplate($rd->getParameter('templateName'));
		$this->setAttribute('template', $template);
		
		return 'Success';
	}
	
	/**
	 * @return bool
	 */
	public function isSecure() {
		return true;
	}
}

?>